<#import "../macro/components.ftl" as components/>
<#include "../macro/layout_default.ftl"/>
<@head>
<link rel="stylesheet" href="/misc/app/jq-liandong/area.css"/>
<style type="text/css">
    .ci{float: left;padding:7px 0 0 5px}
    .over_box{padding-top: 5px;overflow: hidden;zoom: 1;}
    .over_radio{float: left;margin:10px 5px 0 5px !important;}
    .over_text{width:90px;float: left;}
</style>
</@head>
<@body>
<script src="/misc/app/js/salesman_detail.js"></script>
<script src="/misc/app/jq-liandong/cityJson.js"></script>
<script src="/misc/app/jq-liandong/citySet.js"></script>
<script src="/misc/app/jq-liandong/Popt.js"></script>
</@body>
<@layout_default>
<div class="box">
    <div class="box-body">
        <form class="form-horizontal" name="form_edit_salesman">
            <input type="hidden" name="id" id="hidden_id" value="${result.id!}">
            <input type="hidden" name="id" id="hidden_adcode" value="${result.adcode!}">
            <input type="hidden" name="id" id="hidden_state" value="${result.state!}">
            <div class="form-group">
                <label class="col-sm-2 control-label" name="namelabel"><strong class="text-red bold">*</strong> 促销员编号：</label>
                <div class="col-sm-5" style=" top: 8px;">
                <span>${result.code!}</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" name="namelabel"><strong class="text-red bold">*</strong> 促销员名称：</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" style="width:300px;" placeholder="促销员名称名称" value="${result.name!}" name="name" maxlength="200" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" name="namelabel"><strong class="text-red bold">*</strong> 手机号码：</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" style="width:300px;" placeholder="手机号码" value="${result.phone!}" name="phone" maxlength="200" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" name="namelabel"><strong class="text-red bold">*</strong> 负责业务员：</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" style="width:300px;" placeholder="负责业务员" value="${result.psnname!}" name="psnname" maxlength="200" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" name="namelabel"><strong class="text-red bold">*</strong> 门店名称：</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" style="width:300px;" placeholder="促销员名称名称" value="${result.branchname!}"  name="branchname" maxlength="200" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" name="namelabel"><strong class="text-red bold">*</strong> 门店所在地：</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control area" style="width:300px;" placeholder="" value="${result.adname!}" name="adname" maxlength="200"  readonly="readonly" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" name="namelabel"></label>
                <div class="col-sm-5">
                    <textarea type="text" class="form-control" style="width:300px;" rows="5" placeholder="门店详细地址"  name="address" maxlength="200" >${result.address!}</textarea>
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-2 control-label" name="namelabel"><strong class="text-red bold">*</strong> 审核：</label>
                <div class="col-sm-5">
	                <select class="form-control" style="width:300px;" name="state" id="state">
	                    <option value="0" ${(state?exists && state == 1)?string("selected","")}>待审核</option>
	                    <option value="1" ${(state?exists && state == 1)?string("selected","")}>同意</option>
	                    <option value="3" ${(state?exists && state == 2)?string("selected","")}>拒绝</option>
	                    <option value="2" ${(state?exists && state == 2)?string("selected","")}>封存</option>
	                </select>
                </div>
            </div>
           <div class="box-footer text-center">
	        <button type="button" class="btn btn-primary" name="btn_save_edit_salesman" id="btn_save_edit_salesman">保存</button>
	        <button type="button" class="btn btn-default" name="btn_edit_cancel" onclick="history.go(-1);window.location.reload()">取消</button>
	       </div>
        </form>
    </div>
</div>
</@layout_default>